#include <my_head.h>

int main(int argc, const char *argv[]){
    // 会将下面的内容写入终端
    fputs("hello", stdout);

    char buff[10] = "abc";
    fputs(buff, stdout);
    // 会将下面的内容写入终端
    fputs("xja", stderr);

    // 向文件中写入字符串
    FILE *fp = fopen("hello.txt", "a");
    if(NULL == fp)
        ERR_LOG("fopen error");
    fputs("beijing", fp);
    char buff2[10] = "1234";
    fputs(buff2, fp);
    fclose(fp);
    return 0;
}